import styled from 'styled-components'

export const HomeWrapper = styled.div`
  .carousel {
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    .item {
      width: 100%;
      height: 100%;
      padding: 20px;
      box-sizing: border-box;
      display: flex;
      border-radius: 10px;
      background-color: var(--bgColorTop);

      > .left {
        width: 50%;
        .title_item {
          padding: 0;
          line-height: 1.5;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .sub_title_item {
          margin-top: 15px;
          margin-bottom: 15px;
          text-align: right;
        }
        .desc {
          font-size: 14px;
          color: var(--fontColorBottom);
        }
        .btn_item {
          color: #fff;
          margin-top: 10px;
          font-size: 14px;
          font-weight: 700;
          display: inline-block;
          padding: 8px 12px;
          border-radius: 20px;
          background-color: var(--main-color);
        }
      }

      > .right {
        width: 50%;
        margin-left: 30px;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-end;
        img {
          width: 60%;
          height: 100%;
          border-radius: 15px;
        }
      }
    }
  }

  .title {
    margin-top: 30px;
    margin-left: 15px;
    margin-bottom: 0px;
  }

  .options {
    margin-top: 25px;
    margin-left: 15px;
    height: 300px;
    display: flex;

    .option_item {
      flex: 1;
      height: 100%;
      padding: 30px;
      box-sizing: border-box;
      border-radius: 16px;
      .title_box {
        font-size: 48px;
        font-weight: 700;
        .desc {
          font-size: 14px;
          font-weight: 400;
        }
      }

      .sub_title_box {
        font-size: 48px;
        font-weight: 700;
        .desc {
          font-size: 14px;
          font-weight: 400;
        }
      }
    }

    .item_link {
      margin-left: 30px;
      position: relative;
      cursor: pointer;
      background-color: var(--bgColorTop);
      .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .icon_box {
          width: 56px;
          height: 56px;
          display: flex;
          align-items: center;
          justify-content: space-around;
          border-radius: 8px;

          .icon {
            color: #fff;
            font-size: 18px;
          }
        }
        .num {
          font-size: 34px;
        }
      }
      .content {
        > .title {
          padding: 0;
          margin: 0;
          font-size: 18px;
          font-weight: 700;
          color: var(--fontColorTop, #1f1d2b);
          padding-top: 20px;
        }
        > .desc {
          font-size: 12px;
          padding-top: 12px;
          color: var(--fontColorBottom, #9195a1);
        }
      }
      .footer {
        .icon {
          width: 80px;
          height: 40px;
          color: #fff;
          font-size: 32px;
          display: flex;
          align-items: center;
          justify-content: center;
          position: absolute;
          right: 30px;
          bottom: 30px;
          border-radius: 16px;
          background-color: var(--main-color);
        }
      }
    }
  }
`

export const AvatarModalWrapper = styled.div`
  width: 400px;
  border-radius: 20px;
  z-index: 9999;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  background-color: #fff;

  .avatar_item {
    overflow: hidden;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .avatar_item:nth-child(5n) {
    margin-right: 0;
  }
`
